/*******************************************************************************
 * Copyright (c) 2009 Dop Sun.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Dop Sun - initial API and implementation
 ******************************************************************************/
package com.softao.ming.gde.internal.core.util;

import org.eclipse.core.runtime.IExtension;
import org.eclipse.pde.internal.core.PDECore;

/**
 * Accessing the PDE related features.
 */
@SuppressWarnings("restriction")
public class PdeCoreUtil {
	/**
	 * @param extensionPointId
	 * @param activeOnly
	 * @return all extensions for specified extension point.
	 */
	public static IExtension[] findExtensions(final String extensionPointId, final boolean activeOnly) {
		return PDECore.getDefault().getExtensionsRegistry().findExtensions(extensionPointId, activeOnly);
	}
}
